Identifier

The below code works for one identifier but not multiple...I don't understand why.  If you could respond with a concise answer that would be great.  It's been a while since I've had to work with dxl.

The below is the code.

Module m = current
Object o
int objectCount = 0
int deletedObjectCount = 0
string id
id = identifier(o)

for o in entire m do {
    objectCount++
    if (!isDeleted(o){
        if ((id == "LETH-563") || (id == "LETH-564")){
        o."Requirement Status"="Recommend for Deletion"""
        deletedObjectCount++
        print "found a requirement and updated it" "\n"
        }
    }
}

print "Module " name(m)"" " Object Counts:\n"
print "Total number of objects = " objectCount ".\n"
print "Number of deleted objects = " deletedObjectCount ".\n"


bellincm - Thu May 16 17:40:19 EDT 2013

Re: Identifier
Johnny_P - Fri May 17 01:26:32 EDT 2013

This line:

id = identifier(o)

has to go in your "for o in m" loop. Otherwise you're assigning the id of the first object and never change it.